class Solution:
    def intersection(self, nums1, nums2):
        return list(set(nums1).intersection(set(nums2)))

if __name__ == '__main__':
    so = Solution()
    nums1 = [1,2,2,1]
    nums2 = [2,2,1]
    r = so.intersection(nums1, nums2)
    print(r)
